﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TalentRecruitmentSystem.Service;

namespace TalentRecruitmentSystem.Manage
{
    public class CompanyInfoManage
    {
        CompanyInfoServices cs = new CompanyInfoServices();
        public bool Add(CompanyInfo companyInfo)
        {
            return cs.add(companyInfo);
        }
        public CompanyInfo GetCompanyInfoByID(int id)
        {
            return cs.getCompanyInfoByID(id);
        }
        public bool Update(CompanyInfo companyInfo)
        {
            return cs.update(companyInfo);
        }
        public CompanyInfo GetCompanyInfoByName(string name)
        {
            return cs.getCompanyInfoByName(name);
        }
        public List<CompanyInfo> GetCompanyInfosByParameter(string p1, string p2, string p3)
        {
            return cs.getCompanyInfosByParameter(p1, p2, p3);
        }
        public CompanyInfo getCompanyInfoByUserName(string name)
        {
            return cs.getCompanyInfoByUserName(name);
        }
    }
}